package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;
//20210521  zaq  引入，修改格式

/**
 * asp_kind_group
 * @author 
 */
@Data
public class AspKindGroup implements Serializable {
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;

    /**
     * 组别表
     */
    private Integer kGId;

    /**
     * 组别名称
     */
    private String name;

    /**
     * 账簿ID
     */
    private String kGText;

    /**
     * 账簿类型ID
     */
    private Integer kBId;

    /**
     * 删除标志；1|删除；0|未删除
     */
    private Boolean delete;

    private static final long serialVersionUID = 1L;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getkGId() {
        return kGId;
    }

    public void setkGId(Integer kGId) {
        this.kGId = kGId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getkGText() {
        return kGText;
    }

    public void setkGText(String kGText) {
        this.kGText = kGText;
    }

    public Integer getkBId() {
        return kBId;
    }

    public void setkBId(Integer kBId) {
        this.kBId = kBId;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspKindGroup other = (AspKindGroup) that;
        return (this.getkGId() == null ? other.getkGId() == null : this.getkGId().equals(other.getkGId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getkGText() == null ? other.getkGText() == null : this.getkGText().equals(other.getkGText()))
            && (this.getkBId() == null ? other.getkBId() == null : this.getkBId().equals(other.getkBId()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getkGId() == null) ? 0 : getkGId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getkGText() == null) ? 0 : getkGText().hashCode());
        result = prime * result + ((getkBId() == null) ? 0 : getkBId().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", kGId=").append(kGId);
        sb.append(", name=").append(name);
        sb.append(", kGText=").append(kGText);
        sb.append(", kBId=").append(kBId);
        sb.append(", delete=").append(delete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}